package io.renren.modules.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.generator.dao.CounselinfoDao;
import io.renren.modules.generator.entity.CounselinfoEntity;
import io.renren.modules.generator.service.CounselinfoService;



@Service("counselinfoService")
public class CounselinfoServiceImpl implements CounselinfoService {
	@Autowired
	private CounselinfoDao counselinfoDao;
	
	@Override
	public CounselinfoEntity queryObject(String counselno){
		return counselinfoDao.queryObject(counselno);
	}
	
	@Override
	public List<CounselinfoEntity> queryList(Map<String, Object> map){
		return counselinfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return counselinfoDao.queryTotal(map);
	}
	
	@Override
	public void save(CounselinfoEntity counselinfo){
		counselinfoDao.save(counselinfo);
	}
	
	@Override
	public void update(CounselinfoEntity counselinfo){
		counselinfoDao.update(counselinfo);
	}
	
	@Override
	public void delete(String counselno){
		counselinfoDao.delete(counselno);
	}
	
	@Override
	public void deleteBatch(String[] counselnos){
		counselinfoDao.deleteBatch(counselnos);
	}
	
}
